const getters = {
  sidebar: state => state.app.sidebar,
  // device: state => state.app.device
  device: state => state.app.device,
  // token:state => state.user.token
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  staffPhoto: stare => stare.user.userInfo.staffPhoto,
  menus: state => state.user.userInfo.roles?.menus || [],
  points: state => state.user.userInfo.roles?.points || [],
  userId: state => state.user.userInfo.userId
}
export default getters
